<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<!--
 JSINQ, JavaScript integrated query
 Copyright (c) 2010 Kai Jäger. Some rights reserved.
 
 Use of this source code is governed by an MIT-style license that can be
 found in the license.txt file. 
-->

<head>
	<title>JSINQ example</title>	
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
	<h1>Basic JSINQ example</h1>
	<p>
		The source code for this example can be found in the file 
		<em>basic.js</em>.
	</p>
	<p>
		This example showcases the use of <tt>jsinq.Enumerable</tt> without 
		the use of the JSINQ query compiler. Queries are defined by
		chaining together method calls on an instance of 
		<tt>jsinq.Enumerable</tt>. In this concrete example, an HTML table is
		filled from a JSON structure using a simple query statement. The query
		itself generates the HTML nodes that make up the rows of the results
		table.
	</p>
	
	<h2>Results</h2>
	<table border="1">
		<thead>
			<tr>
				<td>id</td>
				<td>firstname</td>
				<td>lastname</td>
				<td>gender</td>
			</tr>
		</thead>
		<tbody id="results"></tbody>
	</table>
	
	<!-- Please note that this example uses the un-minified version of the
	jsinq library for debugging purposes. It is recommended that you use the
	minified version found in the build folder for production use. -->
	<script type="text/javascript" src="../source/jsinq.js">
	</script>	
	<script type="text/javascript" src="basic.js"></script>
</body>
</html>
